package com.ham.mud.characters.mobs;

import com.ham.mud.characters.MudCharacter;

/**
 * Created by hlucas on Jun 16, 2011 at 4:21:22 PM
 */
public class Mob extends MudCharacter {
    String fileName;
    String name;
    String shortDescription;
    String longDescription;
    String[] targetingKeys;
    String zone;

    public Mob(String name, String shortDescription, String longDescription, String[] targetingKeys) {
        super();
        this.name = name;
        this.shortDescription = shortDescription;
        this.longDescription = longDescription;
        this.targetingKeys = targetingKeys;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getShortDescription() {
        return shortDescription;
    }

    public void setShortDescription(String shortDescription) {
        this.shortDescription = shortDescription;
    }

    public String getLongDescription() {
        return longDescription;
    }

    public void setLongDescription(String longDescription) {
        this.longDescription = longDescription;
    }

    public String[] getTargetingKeys() {
        return targetingKeys;
    }

    public void setTargetingKeys(String[] targetingKeys) {
        this.targetingKeys = targetingKeys;
    }

    public String getZone() {
        return zone;                                                                            
    }

    public void setZone(String zone) {
        this.zone = zone;
    }

    @Override
    public boolean equals(Object obj) {
        if(!(obj instanceof Mob)) {
            return false;
        }

        Mob that = (Mob) obj;
        return this.getFileName().equals(that.getFileName());
    }
}
